package com.bridge.demo3;

/**创建抽象化角
 * @author zhangsulei
 *
 */
public abstract class Bag {

	public Color color;

	public Bag(Color color) {
		this.color = color;
	}

	abstract String getName();

	public void say() {
		System.out.println("i am " + getName() + ";my color is "
				+ color.getColor());
	}

}
